package com.ljh.SimpleTradingSystem.mybatis.entity;

import lombok.Data;

@Data
public class Message {
    private int id;         //消息id
    private int senderId;   //发送方id
    private int receiverId; //接收方id
    private String text;    //消息内容
    private String time;    //消息时间

    public Message() {
    }

    public Message(int senderId, int receiverId, String text, String time) {
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.text = text;
        this.time = time;
    }
}
